/*
 * @description: 
 * @Author: vikingShip
 * @Date: 2021-11-04 14:20:04
 * @LastEditors: latiao
 * @LastEditTime: 2022-09-05 18:37:04
 */
import Vue from 'vue'
import App from './App.vue'
import store from "@/store"
import { global,Popup,setData } from "@/utils/helper"
import Pubsub from "@/utils/pubsub";
import storage from "@/utils/storage";
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

Vue.config.productionTip = false
const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {}
console.log('extConfig',extConfig)
Vue.prototype.$store = store
Vue.prototype.$global = new global()
Vue.prototype.$Pubsub = new Pubsub()
Vue.prototype.$Popup = new Popup()
Vue.prototype.$storage = storage
Vue.prototype.$APP = getApp()
Vue.prototype.setData = setData

new App({
  store,
}).$mount();


declare module "vue/types/vue" {
  interface Vue {
    $global: any,
    $Pubsub: any,
    $Popup: any,
    $storage: any,
    setData: any,
    $APP:any
  }
}
